home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / OCEStandardMail.a < prev    next >
Text File  |  1996-05-01  |  24KB  |  936 lines

  1. ;
  2. ;    File:        OCEStandardMail.a
  3. ;
  4. ;    Contains:    Apple Open Collaboration Environment Standard Mail Interfaces.
  5. ;
  6. ;    Version:    Technology:    AOCE Toolbox 1.02
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__OCESTANDARDMAIL__') = 'UNDEFINED' THEN
  19. __OCESTANDARDMAIL__ SET 1
  20.  
  21.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  22.     include 'AppleEvents.a'
  23.     ENDIF
  24.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  25.     include 'Dialogs.a'
  26.     ENDIF
  27.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  28.     include 'Files.a'
  29.     ENDIF
  30.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  31.     include 'Windows.a'
  32.     ENDIF
  33.     IF &TYPE('__OCEAUTHDIR__') = 'UNDEFINED' THEN
  34.     include 'OCEAuthDir.a'
  35.     ENDIF
  36.     IF &TYPE('__OCEMAIL__') = 'UNDEFINED' THEN
  37.     include 'OCEMail.a'
  38.     ENDIF
  39.     IF FOR_SYSTEM7_ONLY THEN
  40.  
  41. kSMPVersion                        EQU        1
  42. gestaltSMPMailerVersion            EQU        'malr'
  43. gestaltSMPSPSendLetterVersion    EQU        'spsl'
  44. kSMPNativeFormatName            EQU        'natv'
  45. LetterSpec                RECORD 0
  46. spec                     ds.l    3                ; offset: $0 (0)
  47. sizeof                     EQU *                    ; size:   $C (12)
  48.                         ENDR
  49.  
  50. typeLetterSpec                    EQU        'lttr'
  51. ;     Wildcard used for filtering letter types. 
  52.  
  53. FilterAnyLetter                    EQU        'ltr*'
  54. FilterAppleLetterContent        EQU        'ltc*'
  55. FilterImageContent                EQU        'lti*'
  56. LetterDescriptor        RECORD 0
  57. onDisk                     ds.b    1                ; offset: $0 (0)
  58. filler1                     ds.b    1                ; offset: $1 (1)
  59. fileSpec                 ds        FSSpec            ; offset: $2 (2)
  60.                          ORG 2
  61. mailboxSpec                 ds        LetterSpec        ; offset: $2 (2)
  62.                          ORG 72
  63. sizeof                     EQU *                    ; size:   $48 (72)
  64.                         ENDR
  65. ;
  66. ;SMPPSendAs values.  You may add the following values together to determine how the
  67. ;file is sent, but you may not set both kSMPSendAsEnclosureMask and kSMPSendFileOnlyMask.  This
  68. ;will allow you to send the letter as an image so that it will work with fax gateways
  69. ;and send as an enclosure as well.
  70. ;
  71.  
  72. kSMPSendAsEnclosureBit            EQU        0                    ; Appears as letter with enclosures 
  73. kSMPSendFileOnlyBit                EQU        1                    ; Appears as a file in mailbox. 
  74. kSMPSendAsImageBit                EQU        2                    ; Content imaged in letter 
  75. ;  Values of SMPPSendAs 
  76.  
  77. kSMPSendAsEnclosureMask            EQU        $01
  78. kSMPSendFileOnlyMask            EQU        $02
  79. kSMPSendAsImageMask                EQU        $04
  80. ; typedef Byte                             SMPPSendAs
  81.  
  82. ;  Send Package Structures 
  83. SMPRecipientDescriptor    RECORD 0
  84. next                     ds.l    1                ; offset: $0 (0)        ;   Q-Link. 
  85. result                     ds.w    1                ; offset: $4 (4)        ;   result code when using the object. 
  86. recipient                 ds.l    1                ; offset: $6 (6)        ;   Pointer to a Packed Address. 
  87. size                     ds.l    1                ; offset: $A (10)        ;   length of recipient in bytes. 
  88. theAddress                 ds        MailRecipient    ; offset: $E (14)        ;   structure points into recipient and theRID. 
  89. theRID                     ds        RecordID        ; offset: $1C (28)        ;   structure points into recipient. 
  90. sizeof                     EQU *                    ; size:   $30 (48)
  91.                         ENDR
  92. ; typedef struct SMPRecipientDescriptor * SMPRecipientDescriptorPtr
  93.  
  94. SMPEnclosureDescriptor    RECORD 0
  95. next                     ds.l    1                ; offset: $0 (0)
  96. result                     ds.w    1                ; offset: $4 (4)
  97. fileSpec                 ds        FSSpec            ; offset: $6 (6)
  98. fileCreator                 ds.l    1                ; offset: $4C (76)        ;   Creator of this enclosure. 
  99. fileType                 ds.l    1                ; offset: $50 (80)        ;   File Type of this enclosure. 
  100. sizeof                     EQU *                    ; size:   $54 (84)
  101.                         ENDR
  102. ; typedef struct SMPEnclosureDescriptor * SMPEnclosureDescriptorPtr
  103.  
  104. SMPLetterPB                RECORD 0
  105. result                     ds.w    1                ; offset: $0 (0)        ;  result of operation 
  106. subject                     ds.l    1                ; offset: $2 (2)        ;  RString 
  107. senderIdentity             ds.l    1                ; offset: $6 (6)        ;  Letter is sent from this Identity 
  108. toList                     ds.l    1                ; offset: $A (10)        ;  Pointer to linked list 
  109. ccList                     ds.l    1                ; offset: $E (14)        ;  Pointer to linked list 
  110. bccList                     ds.l    1                ; offset: $12 (18)        ;  Pointer to linked list 
  111. script                     ds.w    1                ; offset: $16 (22)        ;  Identifier for language 
  112. textSize                 ds.l    1                ; offset: $18 (24)        ;  length of body data 
  113. textBuffer                 ds.l    1                ; offset: $1C (28)        ;  body of the letter 
  114. sendAs                     ds.b    1                ; offset: $20 (32)        ;  Send as Letter,Enclosure,Image 
  115. padByte                     ds.b    1                ; offset: $21 (33)
  116. enclosures                 ds.l    1                ; offset: $22 (34)        ;  files to be enclosed 
  117. drawImageProc             ds.l    1                ; offset: $26 (38)        ;  For imaging 
  118. imageRefCon                 ds.l    1                ; offset: $2A (42)        ;  For imaging 
  119. supportsColor             ds.b    1                ; offset: $2E (46)        ;  For imaging - set to true if you application supports color imaging 
  120. filler1                     ds.b    1                ; offset: $2F (47)
  121. sizeof                     EQU *                    ; size:   $30 (48)
  122.                         ENDR
  123. ; typedef struct SMPLetterPB *            SMPLetterPBPtr
  124.  
  125.  
  126. kSMPAppMustHandleEventBit        EQU        0
  127. kSMPAppShouldIgnoreEventBit        EQU        1
  128. kSMPContractedBit                EQU        2
  129. kSMPExpandedBit                    EQU        3
  130. kSMPMailerBecomesTargetBit        EQU        4
  131. kSMPAppBecomesTargetBit            EQU        5
  132. kSMPCursorOverMailerBit            EQU        6
  133. kSMPCreateCopyWindowBit            EQU        7
  134. kSMPDisposeCopyWindowBit        EQU        8
  135. ;  Values of SMPMailerResult 
  136.  
  137. kSMPAppMustHandleEventMask        EQU        $01
  138. kSMPAppShouldIgnoreEventMask    EQU        $02
  139. kSMPContractedMask                EQU        $04
  140. kSMPExpandedMask                EQU        $08
  141. kSMPMailerBecomesTargetMask        EQU        $10
  142. kSMPAppBecomesTargetMask        EQU        $20
  143. kSMPCursorOverMailerMask        EQU        $40
  144. kSMPCreateCopyWindowMask        EQU        $80
  145. kSMPDisposeCopyWindowMask        EQU        $0100
  146. ; typedef unsigned long                 SMPMailerResult
  147.  
  148. ;  Values of SMPMailerComponent
  149.  
  150. kSMPOther                        EQU        -1
  151. kSMPFrom                        EQU        32
  152. kSMPTo                            EQU        20
  153. kSMPRegarding                    EQU        22
  154. kSMPSendDateTime                EQU        29
  155. kSMPAttachments                    EQU        26
  156. kSMPAddressOMatic                EQU        16
  157. ; typedef unsigned long                 SMPMailerComponent
  158.  
  159.  
  160. kSMPToAddress                    EQU        13
  161. kSMPCCAddress                    EQU        14
  162. kSMPBCCAddress                    EQU        15
  163. ; typedef MailAttributeID                 SMPAddressType
  164.  
  165.  
  166. kSMPUndoCommand                    EQU        0
  167. kSMPCutCommand                    EQU        1
  168. kSMPCopyCommand                    EQU        2
  169. kSMPPasteCommand                EQU        3
  170. kSMPClearCommand                EQU        4
  171. kSMPSelectAllCommand            EQU        5
  172. ; typedef unsigned short                 SMPEditCommand
  173.  
  174.  
  175. kSMPUndoDisabled                EQU        0
  176. kSMPAppMayUndo                    EQU        1
  177. kSMPMailerUndo                    EQU        2
  178. ; typedef unsigned short                 SMPUndoState
  179.  
  180. ;
  181. ;SMPSendFormatMask:
  182. ;
  183. ;Bitfield indicating which combinations of formats are included in,
  184. ;should be included or, or can be included in a letter.
  185. ;
  186.  
  187. kSMPNativeBit                    EQU        0
  188. kSMPImageBit                    EQU        1
  189. kSMPStandardInterchangeBit        EQU        2
  190. ;  Values of SMPSendFormatMask 
  191.  
  192. kSMPNativeMask                    EQU        $01
  193. kSMPImageMask                    EQU        $02
  194. kSMPStandardInterchangeMask        EQU        $04
  195. ; typedef unsigned long                 SMPSendFormatMask
  196.  
  197. ;
  198. ;    Pseudo-events passed to the clients filter proc for initialization and cleanup.
  199. ;
  200.  
  201. kSMPSendOptionsStart            EQU        -1
  202. kSMPSendOptionsEnd                EQU        -2
  203. ;
  204. ;SMPSendFormatMask:
  205. ;
  206. ;Structure describing the format of a letter.  If kSMPNativeMask bit is set, the whichNativeFormat field indicates which of the client-defined formats to use.
  207. ;
  208. SMPSendFormat            RECORD 0
  209. whichFormats             ds.l    1                ; offset: $0 (0)
  210. whichNativeFormat         ds.w    1                ; offset: $4 (4)        ;  0 based 
  211. sizeof                     EQU *                    ; size:   $6 (6)
  212.                         ENDR
  213. SMPLetterInfo            RECORD 0
  214. letterCreator             ds.l    1                ; offset: $0 (0)
  215. letterType                 ds.l    1                ; offset: $4 (4)
  216. subject                     ds        RString32        ; offset: $8 (8)
  217. sender                     ds        RString32        ; offset: $2C (44)
  218. sizeof                     EQU *                    ; size:   $50 (80)
  219.                         ENDR
  220.  
  221. kSMPSave                        EQU        0
  222. kSMPSaveAs                        EQU        1
  223. kSMPSaveACopy                    EQU        2
  224. ; typedef unsigned short                 SMPSaveType
  225.  
  226. SMPMailerState            RECORD 0
  227. mailerCount                 ds.w    1                ; offset: $0 (0)
  228. currentMailer             ds.w    1                ; offset: $2 (2)
  229. upperLeft                 ds        Point            ; offset: $4 (4)
  230. hasBeenReceived             ds.b    1                ; offset: $8 (8)
  231. isTarget                 ds.b    1                ; offset: $9 (9)
  232. isExpanded                 ds.b    1                ; offset: $A (10)
  233. canMoveToTrash             ds.b    1                ; offset: $B (11)
  234. canTag                     ds.b    1                ; offset: $C (12)
  235. padByte2                 ds.b    1                ; offset: $D (13)
  236. changeCount                 ds.l    1                ; offset: $E (14)
  237. targetComponent             ds.l    1                ; offset: $12 (18)
  238. canCut                     ds.b    1                ; offset: $16 (22)
  239. canCopy                     ds.b    1                ; offset: $17 (23)
  240. canPaste                 ds.b    1                ; offset: $18 (24)
  241. canClear                 ds.b    1                ; offset: $19 (25)
  242. canSelectAll             ds.b    1                ; offset: $1A (26)
  243. padByte3                 ds.b    1                ; offset: $1B (27)
  244. undoState                 ds.w    1                ; offset: $1C (28)
  245. undoWhat                 ds        Str63            ; offset: $1E (30)
  246. sizeof                     EQU *                    ; size:   $5E (94)
  247.                         ENDR
  248. SMPSendOptions            RECORD 0
  249. signWhenSent             ds.b    1                ; offset: $0 (0)
  250. priority                 ds.b    1                ; offset: $1 (1)
  251. sizeof                     EQU *                    ; size:   $2 (2)
  252.                         ENDR
  253. ; typedef struct SMPSendOptions *        SMPSendOptionsPtr
  254.  
  255. ; typedef SMPSendOptionsPtr *            SMPSendOptionsHandle
  256.  
  257. SMPCloseOptions            RECORD 0
  258. moveToTrash                 ds.b    1                ; offset: $0 (0)
  259. addTag                     ds.b    1                ; offset: $1 (1)
  260. tag                         ds        RString32        ; offset: $2 (2)
  261. sizeof                     EQU *                    ; size:   $26 (38)
  262.                         ENDR
  263. ; typedef struct SMPCloseOptions *        SMPCloseOptionsPtr
  264.  
  265. ;
  266. ;----------------------------------------------------------------------------------------
  267. ;    Send Package Routines
  268. ;----------------------------------------------------------------------------------------
  269. ;
  270. ;
  271. ; pascal OSErr SMPSendLetter(SMPLetterPBPtr theLetter)
  272. ;
  273.     IF ¨ GENERATINGCFM THEN
  274.         Macro
  275.         _SMPSendLetter
  276.             move.l              #$000201F4,D0
  277.             dc.w                $AA5D
  278.         EndM
  279.     ELSE
  280.         IMPORT_CFM_FUNCTION SMPSendLetter
  281.     ENDIF
  282.  
  283. ;
  284. ; pascal OSErr SMPNewPage(OpenCPicParams *newHeader)
  285. ;
  286.     IF ¨ GENERATINGCFM THEN
  287.         Macro
  288.         _SMPNewPage
  289.             move.l              #$00020834,D0
  290.             dc.w                $AA5D
  291.         EndM
  292.     ELSE
  293.         IMPORT_CFM_FUNCTION SMPNewPage
  294.     ENDIF
  295.  
  296. ;
  297. ; pascal OSErr SMPImageErr(void )
  298. ;
  299.     IF ¨ GENERATINGCFM THEN
  300.         Macro
  301.         _SMPImageErr
  302.             move.l              #$00000835,D0
  303.             dc.w                $AA5D
  304.         EndM
  305.     ELSE
  306.         IMPORT_CFM_FUNCTION SMPImageErr
  307.     ENDIF
  308.  
  309. ;
  310. ; pascal OSErr SMPResolveToRecipient(PackedDSSpecPtr dsSpec, SMPRecipientDescriptorPtr *recipientList, AuthIdentity identity)
  311. ;
  312.     IF ¨ GENERATINGCFM THEN
  313.         Macro
  314.         _SMPResolveToRecipient
  315.             move.l              #$0006044C,D0
  316.             dc.w                $AA5D
  317.         EndM
  318.     ELSE
  319.         IMPORT_CFM_FUNCTION SMPResolveToRecipient
  320.     ENDIF
  321.  
  322. ;
  323. ; pascal OSErr SMPInitMailer(long mailerVersion)
  324. ;
  325.     IF ¨ GENERATINGCFM THEN
  326.         Macro
  327.         _SMPInitMailer
  328.             move.l              #$00021285,D0
  329.             dc.w                $AA5D
  330.         EndM
  331.     ELSE
  332.         IMPORT_CFM_FUNCTION SMPInitMailer
  333.     ENDIF
  334.  
  335. ;
  336. ; pascal OSErr SMPGetDimensions(short *width, short *contractedHeight, short *expandedHeight)
  337. ;
  338.     IF ¨ GENERATINGCFM THEN
  339.         Macro
  340.         _SMPGetDimensions
  341.             move.l              #$0006125C,D0
  342.             dc.w                $AA5D
  343.         EndM
  344.     ELSE
  345.         IMPORT_CFM_FUNCTION SMPGetDimensions
  346.     ENDIF
  347.  
  348. ;
  349. ; pascal OSErr SMPGetTabInfo(SMPMailerComponent *firstTab, SMPMailerComponent *lastTab)
  350. ;
  351.     IF ¨ GENERATINGCFM THEN
  352.         Macro
  353.         _SMPGetTabInfo
  354.             move.l              #$00041274,D0
  355.             dc.w                $AA5D
  356.         EndM
  357.     ELSE
  358.         IMPORT_CFM_FUNCTION SMPGetTabInfo
  359.     ENDIF
  360.  
  361. ;
  362. ; pascal OSErr SMPNewMailer(WindowPtr window, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, AuthIdentity identity, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  363. ;
  364.     IF ¨ GENERATINGCFM THEN
  365.         Macro
  366.         _SMPNewMailer
  367.             move.l              #$000C125D,D0
  368.             dc.w                $AA5D
  369.         EndM
  370.     ELSE
  371.         IMPORT_CFM_FUNCTION SMPNewMailer
  372.     ENDIF
  373.  
  374. ;
  375. ; pascal OSErr SMPPrepareToClose(WindowPtr window)
  376. ;
  377.     IF ¨ GENERATINGCFM THEN
  378.         Macro
  379.         _SMPPrepareToClose
  380.             move.l              #$00021287,D0
  381.             dc.w                $AA5D
  382.         EndM
  383.     ELSE
  384.         IMPORT_CFM_FUNCTION SMPPrepareToClose
  385.     ENDIF
  386.  
  387. ;
  388. ; pascal OSErr SMPCloseOptionsDialog(WindowPtr window, SMPCloseOptionsPtr closeOptions)
  389. ;
  390.     IF ¨ GENERATINGCFM THEN
  391.         Macro
  392.         _SMPCloseOptionsDialog
  393.             move.l              #$00041288,D0
  394.             dc.w                $AA5D
  395.         EndM
  396.     ELSE
  397.         IMPORT_CFM_FUNCTION SMPCloseOptionsDialog
  398.     ENDIF
  399.  
  400. ;
  401. ; pascal OSErr SMPTagDialog(WindowPtr window, RString32 *theTag)
  402. ;
  403.     IF ¨ GENERATINGCFM THEN
  404.         Macro
  405.         _SMPTagDialog
  406.             move.l              #$0004128B,D0
  407.             dc.w                $AA5D
  408.         EndM
  409.     ELSE
  410.         IMPORT_CFM_FUNCTION SMPTagDialog
  411.     ENDIF
  412.  
  413. ;
  414. ; pascal OSErr SMPDisposeMailer(WindowPtr window, SMPCloseOptionsPtr closeOptions)
  415. ;
  416.     IF ¨ GENERATINGCFM THEN
  417.         Macro
  418.         _SMPDisposeMailer
  419.             move.l              #$0004125E,D0
  420.             dc.w                $AA5D
  421.         EndM
  422.     ELSE
  423.         IMPORT_CFM_FUNCTION SMPDisposeMailer
  424.     ENDIF
  425.  
  426. ;
  427. ; pascal OSErr SMPMailerEvent(const EventRecord *event, SMPMailerResult *whatHappened, FrontWindowUPP frontWindowCB, long clientData)
  428. ;
  429.     IF ¨ GENERATINGCFM THEN
  430.         Macro
  431.         _SMPMailerEvent
  432.             move.l              #$0008125F,D0
  433.             dc.w                $AA5D
  434.         EndM
  435.     ELSE
  436.         IMPORT_CFM_FUNCTION SMPMailerEvent
  437.     ENDIF
  438.  
  439. ;
  440. ; pascal OSErr SMPClearUndo(WindowPtr window)
  441. ;
  442.     IF ¨ GENERATINGCFM THEN
  443.         Macro
  444.         _SMPClearUndo
  445.             move.l              #$00021275,D0
  446.             dc.w                $AA5D
  447.         EndM
  448.     ELSE
  449.         IMPORT_CFM_FUNCTION SMPClearUndo
  450.     ENDIF
  451.  
  452. ;
  453. ; pascal OSErr SMPMailerEditCommand(WindowPtr window, SMPEditCommand command, SMPMailerResult *whatHappened)
  454. ;
  455.     IF ¨ GENERATINGCFM THEN
  456.         Macro
  457.         _SMPMailerEditCommand
  458.             move.l              #$00051260,D0
  459.             dc.w                $AA5D
  460.         EndM
  461.     ELSE
  462.         IMPORT_CFM_FUNCTION SMPMailerEditCommand
  463.     ENDIF
  464.  
  465. ;
  466. ; pascal OSErr SMPMailerForward(WindowPtr window, AuthIdentity from)
  467. ;
  468.     IF ¨ GENERATINGCFM THEN
  469.         Macro
  470.         _SMPMailerForward
  471.             move.l              #$00041261,D0
  472.             dc.w                $AA5D
  473.         EndM
  474.     ELSE
  475.         IMPORT_CFM_FUNCTION SMPMailerForward
  476.     ENDIF
  477.  
  478. ;
  479. ; pascal OSErr SMPMailerReply(WindowPtr originalLetter, WindowPtr newLetter, Boolean replyToAll, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, AuthIdentity identity, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  480. ;
  481.     IF ¨ GENERATINGCFM THEN
  482.         Macro
  483.         _SMPMailerReply
  484.             move.l              #$000F1262,D0
  485.             dc.w                $AA5D
  486.         EndM
  487.     ELSE
  488.         IMPORT_CFM_FUNCTION SMPMailerReply
  489.     ENDIF
  490.  
  491. ;
  492. ; pascal OSErr SMPGetMailerState(WindowPtr window, SMPMailerState *itsState)
  493. ;
  494.     IF ¨ GENERATINGCFM THEN
  495.         Macro
  496.         _SMPGetMailerState
  497.             move.l              #$00041263,D0
  498.             dc.w                $AA5D
  499.         EndM
  500.     ELSE
  501.         IMPORT_CFM_FUNCTION SMPGetMailerState
  502.     ENDIF
  503.  
  504. ;
  505. ; pascal OSErr SMPSendOptionsDialog(WindowPtr window, Str255 documentName, StringPtr nativeFormatNames[2147483647], unsigned short nameCount, SMPSendFormatMask canSend, SMPSendFormat *currentFormat, SendOptionsFilterUPP filterProc, long clientData, SMPSendFormat *shouldSend, SMPSendOptionsPtr sendOptions)
  506. ;
  507.     IF ¨ GENERATINGCFM THEN
  508.         Macro
  509.         _SMPSendOptionsDialog
  510.             move.l              #$00131388,D0
  511.             dc.w                $AA5D
  512.         EndM
  513.     ELSE
  514.         IMPORT_CFM_FUNCTION SMPSendOptionsDialog
  515.     ENDIF
  516.  
  517. ;
  518. ; pascal OSErr SMPPrepareCoverPages(WindowPtr window, short *pageCount)
  519. ;
  520.     IF ¨ GENERATINGCFM THEN
  521.         Macro
  522.         _SMPPrepareCoverPages
  523.             move.l              #$00041264,D0
  524.             dc.w                $AA5D
  525.         EndM
  526.     ELSE
  527.         IMPORT_CFM_FUNCTION SMPPrepareCoverPages
  528.     ENDIF
  529.  
  530. ;
  531. ; pascal OSErr SMPDrawNthCoverPage(WindowPtr window, short pageNumber, Boolean doneDrawingCoverPages)
  532. ;
  533.     IF ¨ GENERATINGCFM THEN
  534.         Macro
  535.         _SMPDrawNthCoverPage
  536.             move.l              #$00041265,D0
  537.             dc.w                $AA5D
  538.         EndM
  539.     ELSE
  540.         IMPORT_CFM_FUNCTION SMPDrawNthCoverPage
  541.     ENDIF
  542.  
  543. ;
  544. ; pascal OSErr SMPPrepareToChange(WindowPtr window)
  545. ;
  546.     IF ¨ GENERATINGCFM THEN
  547.         Macro
  548.         _SMPPrepareToChange
  549.             move.l              #$00021289,D0
  550.             dc.w                $AA5D
  551.         EndM
  552.     ELSE
  553.         IMPORT_CFM_FUNCTION SMPPrepareToChange
  554.     ENDIF
  555.  
  556. ;
  557. ; pascal OSErr SMPContentChanged(WindowPtr window)
  558. ;
  559.     IF ¨ GENERATINGCFM THEN
  560.         Macro
  561.         _SMPContentChanged
  562.             move.l              #$0002126F,D0
  563.             dc.w                $AA5D
  564.         EndM
  565.     ELSE
  566.         IMPORT_CFM_FUNCTION SMPContentChanged
  567.     ENDIF
  568.  
  569. ;
  570. ; pascal OSErr SMPBeginSave(WindowPtr window, const FSSpec *diskLetter, OSType creator, OSType fileType, SMPSaveType saveType, Boolean *mustAddContent)
  571. ;
  572.     IF ¨ GENERATINGCFM THEN
  573.         Macro
  574.         _SMPBeginSave
  575.             move.l              #$000B1266,D0
  576.             dc.w                $AA5D
  577.         EndM
  578.     ELSE
  579.         IMPORT_CFM_FUNCTION SMPBeginSave
  580.     ENDIF
  581.  
  582. ;
  583. ; pascal OSErr SMPEndSave(WindowPtr window, Boolean okToSave)
  584. ;
  585.     IF ¨ GENERATINGCFM THEN
  586.         Macro
  587.         _SMPEndSave
  588.             move.l              #$00031270,D0
  589.             dc.w                $AA5D
  590.         EndM
  591.     ELSE
  592.         IMPORT_CFM_FUNCTION SMPEndSave
  593.     ENDIF
  594.  
  595. ;
  596. ; pascal OSErr SMPBeginSend(WindowPtr window, OSType creator, OSType fileType, SMPSendOptionsPtr sendOptions, Boolean *mustAddContent)
  597. ;
  598.     IF ¨ GENERATINGCFM THEN
  599.         Macro
  600.         _SMPBeginSend
  601.             move.l              #$000A1267,D0
  602.             dc.w                $AA5D
  603.         EndM
  604.     ELSE
  605.         IMPORT_CFM_FUNCTION SMPBeginSend
  606.     ENDIF
  607.  
  608. ;
  609. ; pascal OSErr SMPEndSend(WindowPtr window, Boolean okToSend)
  610. ;
  611.     IF ¨ GENERATINGCFM THEN
  612.         Macro
  613.         _SMPEndSend
  614.             move.l              #$00031271,D0
  615.             dc.w                $AA5D
  616.         EndM
  617.     ELSE
  618.         IMPORT_CFM_FUNCTION SMPEndSend
  619.     ENDIF
  620.  
  621. ;
  622. ; pascal OSErr SMPOpenLetter(const LetterDescriptor *letter, WindowPtr window, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  623. ;
  624.     IF ¨ GENERATINGCFM THEN
  625.         Macro
  626.         _SMPOpenLetter
  627.             move.l              #$000C1268,D0
  628.             dc.w                $AA5D
  629.         EndM
  630.     ELSE
  631.         IMPORT_CFM_FUNCTION SMPOpenLetter
  632.     ENDIF
  633.  
  634. ;
  635. ; pascal OSErr SMPAddMainEnclosure(WindowPtr window, const FSSpec *enclosure)
  636. ;
  637.     IF ¨ GENERATINGCFM THEN
  638.         Macro
  639.         _SMPAddMainEnclosure
  640.             move.l              #$0004127D,D0
  641.             dc.w                $AA5D
  642.         EndM
  643.     ELSE
  644.         IMPORT_CFM_FUNCTION SMPAddMainEnclosure
  645.     ENDIF
  646.  
  647. ;
  648. ; pascal OSErr SMPGetMainEnclosureFSSpec(WindowPtr window, FSSpec *enclosureDir)
  649. ;
  650.     IF ¨ GENERATINGCFM THEN
  651.         Macro
  652.         _SMPGetMainEnclosureFSSpec
  653.             move.l              #$0004127E,D0
  654.             dc.w                $AA5D
  655.         EndM
  656.     ELSE
  657.         IMPORT_CFM_FUNCTION SMPGetMainEnclosureFSSpec
  658.     ENDIF
  659.  
  660. ;
  661. ; pascal OSErr SMPAddContent(WindowPtr window, MailSegmentType segmentType, Boolean appendFlag, void *buffer, unsigned long bufferSize, StScrpRec *textScrap, Boolean startNewScript, ScriptCode script)
  662. ;
  663.     IF ¨ GENERATINGCFM THEN
  664.         Macro
  665.         _SMPAddContent
  666.             move.l              #$000C127A,D0
  667.             dc.w                $AA5D
  668.         EndM
  669.     ELSE
  670.         IMPORT_CFM_FUNCTION SMPAddContent
  671.     ENDIF
  672.  
  673. ;
  674. ; pascal OSErr SMPReadContent(WindowPtr window, MailSegmentMask segmentTypeMask, void *buffer, unsigned long bufferSize, unsigned long *dataSize, StScrpRec *textScrap, ScriptCode *script, MailSegmentType *segmentType, Boolean *endOfScript, Boolean *endOfSegment, Boolean *endOfContent, long *segmentLength, long *segmentID)
  675. ;
  676.     IF ¨ GENERATINGCFM THEN
  677.         Macro
  678.         _SMPReadContent
  679.             move.l              #$0019127B,D0
  680.             dc.w                $AA5D
  681.         EndM
  682.     ELSE
  683.         IMPORT_CFM_FUNCTION SMPReadContent
  684.     ENDIF
  685.  
  686. ;
  687. ; pascal OSErr SMPGetFontNameFromLetter(WindowPtr window, short fontNum, Str255 fontName, Boolean doneWithFontTable)
  688. ;
  689.     IF ¨ GENERATINGCFM THEN
  690.         Macro
  691.         _SMPGetFontNameFromLetter
  692.             move.l              #$0006127C,D0
  693.             dc.w                $AA5D
  694.         EndM
  695.     ELSE
  696.         IMPORT_CFM_FUNCTION SMPGetFontNameFromLetter
  697.     ENDIF
  698.  
  699. ;
  700. ; pascal OSErr SMPAddBlock(WindowPtr window, const OCECreatorType *blockType, Boolean append, void *buffer, unsigned long bufferSize, MailBlockMode mode, unsigned long offset)
  701. ;
  702.     IF ¨ GENERATINGCFM THEN
  703.         Macro
  704.         _SMPAddBlock
  705.             move.l              #$000C127F,D0
  706.             dc.w                $AA5D
  707.         EndM
  708.     ELSE
  709.         IMPORT_CFM_FUNCTION SMPAddBlock
  710.     ENDIF
  711.  
  712. ;
  713. ; pascal OSErr SMPReadBlock(WindowPtr window, const OCECreatorType *blockType, unsigned short blockIndex, void *buffer, unsigned long bufferSize, unsigned long dataOffset, unsigned long *dataSize, Boolean *endOfBlock, unsigned long *remaining)
  714. ;
  715.     IF ¨ GENERATINGCFM THEN
  716.         Macro
  717.         _SMPReadBlock
  718.             move.l              #$00111280,D0
  719.             dc.w                $AA5D
  720.         EndM
  721.     ELSE
  722.         IMPORT_CFM_FUNCTION SMPReadBlock
  723.     ENDIF
  724.  
  725. ;
  726. ; pascal OSErr SMPEnumerateBlocks(WindowPtr window, unsigned short startIndex, void *buffer, unsigned long bufferSize, unsigned long *dataSize, unsigned short *nextIndex, Boolean *more)
  727. ;
  728.     IF ¨ GENERATINGCFM THEN
  729.         Macro
  730.         _SMPEnumerateBlocks
  731.             move.l              #$000D1281,D0
  732.             dc.w                $AA5D
  733.         EndM
  734.     ELSE
  735.         IMPORT_CFM_FUNCTION SMPEnumerateBlocks
  736.     ENDIF
  737.  
  738. ;
  739. ; pascal OSErr SMPDrawMailer(WindowPtr window)
  740. ;
  741.     IF ¨ GENERATINGCFM THEN
  742.         Macro
  743.         _SMPDrawMailer
  744.             move.l              #$00021269,D0
  745.             dc.w                $AA5D
  746.         EndM
  747.     ELSE
  748.         IMPORT_CFM_FUNCTION SMPDrawMailer
  749.     ENDIF
  750.  
  751. ;
  752. ; pascal OSErr SMPSetSubject(WindowPtr window, const RString *text)
  753. ;
  754.     IF ¨ GENERATINGCFM THEN
  755.         Macro
  756.         _SMPSetSubject
  757.             move.l              #$0004126B,D0
  758.             dc.w                $AA5D
  759.         EndM
  760.     ELSE
  761.         IMPORT_CFM_FUNCTION SMPSetSubject
  762.     ENDIF
  763.  
  764. ;
  765. ; pascal OSErr SMPSetFromIdentity(WindowPtr window, AuthIdentity from)
  766. ;
  767.     IF ¨ GENERATINGCFM THEN
  768.         Macro
  769.         _SMPSetFromIdentity
  770.             move.l              #$0004126C,D0
  771.             dc.w                $AA5D
  772.         EndM
  773.     ELSE
  774.         IMPORT_CFM_FUNCTION SMPSetFromIdentity
  775.     ENDIF
  776.  
  777. ;
  778. ; pascal OSErr SMPAddAddress(WindowPtr window, SMPAddressType addrType, OCEPackedRecipient *address)
  779. ;
  780.     IF ¨ GENERATINGCFM THEN
  781.         Macro
  782.         _SMPAddAddress
  783.             move.l              #$0005126D,D0
  784.             dc.w                $AA5D
  785.         EndM
  786.     ELSE
  787.         IMPORT_CFM_FUNCTION SMPAddAddress
  788.     ENDIF
  789.  
  790. ;
  791. ; pascal OSErr SMPAddAttachment(WindowPtr window, const FSSpec *attachment)
  792. ;
  793.     IF ¨ GENERATINGCFM THEN
  794.         Macro
  795.         _SMPAddAttachment
  796.             move.l              #$0004126E,D0
  797.             dc.w                $AA5D
  798.         EndM
  799.     ELSE
  800.         IMPORT_CFM_FUNCTION SMPAddAttachment
  801.     ENDIF
  802.  
  803. ;
  804. ; pascal OSErr SMPAttachDialog(WindowPtr window)
  805. ;
  806.     IF ¨ GENERATINGCFM THEN
  807.         Macro
  808.         _SMPAttachDialog
  809.             move.l              #$00021276,D0
  810.             dc.w                $AA5D
  811.         EndM
  812.     ELSE
  813.         IMPORT_CFM_FUNCTION SMPAttachDialog
  814.     ENDIF
  815.  
  816. ;
  817. ; pascal OSErr SMPExpandOrContract(WindowPtr window, Boolean expand)
  818. ;
  819.     IF ¨ GENERATINGCFM THEN
  820.         Macro
  821.         _SMPExpandOrContract
  822.             move.l              #$00031272,D0
  823.             dc.w                $AA5D
  824.         EndM
  825.     ELSE
  826.         IMPORT_CFM_FUNCTION SMPExpandOrContract
  827.     ENDIF
  828.  
  829. ;
  830. ; pascal OSErr SMPMoveMailer(WindowPtr window, short dh, short dv)
  831. ;
  832.     IF ¨ GENERATINGCFM THEN
  833.         Macro
  834.         _SMPMoveMailer
  835.             move.l              #$0004126A,D0
  836.             dc.w                $AA5D
  837.         EndM
  838.     ELSE
  839.         IMPORT_CFM_FUNCTION SMPMoveMailer
  840.     ENDIF
  841.  
  842. ;
  843. ; pascal OSErr SMPBecomeTarget(WindowPtr window, Boolean becomeTarget, SMPMailerComponent whichField)
  844. ;
  845.     IF ¨ GENERATINGCFM THEN
  846.         Macro
  847.         _SMPBecomeTarget
  848.             move.l              #$00051273,D0
  849.             dc.w                $AA5D
  850.         EndM
  851.     ELSE
  852.         IMPORT_CFM_FUNCTION SMPBecomeTarget
  853.     ENDIF
  854.  
  855. ;
  856. ; pascal OSErr SMPGetComponentSize(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, unsigned short *size)
  857. ;
  858.     IF ¨ GENERATINGCFM THEN
  859.         Macro
  860.         _SMPGetComponentSize
  861.             move.l              #$00071277,D0
  862.             dc.w                $AA5D
  863.         EndM
  864.     ELSE
  865.         IMPORT_CFM_FUNCTION SMPGetComponentSize
  866.     ENDIF
  867.  
  868. ;
  869. ; pascal OSErr SMPGetComponentInfo(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, void *buffer)
  870. ;
  871.     IF ¨ GENERATINGCFM THEN
  872.         Macro
  873.         _SMPGetComponentInfo
  874.             move.l              #$00071278,D0
  875.             dc.w                $AA5D
  876.         EndM
  877.     ELSE
  878.         IMPORT_CFM_FUNCTION SMPGetComponentInfo
  879.     ENDIF
  880.  
  881. ;
  882. ; pascal OSErr SMPGetListItemInfo(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, void *buffer, unsigned long bufferLength, unsigned short startItem, unsigned short *itemCount, unsigned short *nextItem, Boolean *more)
  883. ;
  884.     IF ¨ GENERATINGCFM THEN
  885.         Macro
  886.         _SMPGetListItemInfo
  887.             move.l              #$00101279,D0
  888.             dc.w                $AA5D
  889.         EndM
  890.     ELSE
  891.         IMPORT_CFM_FUNCTION SMPGetListItemInfo
  892.     ENDIF
  893.  
  894. ;
  895. ; pascal OSErr SMPImage(WindowPtr window, SMPDrawImageUPP drawImageProc, long imageRefCon, Boolean supportsColor)
  896. ;
  897.     IF ¨ GENERATINGCFM THEN
  898.         Macro
  899.         _SMPImage
  900.             move.l              #$00071282,D0
  901.             dc.w                $AA5D
  902.         EndM
  903.     ELSE
  904.         IMPORT_CFM_FUNCTION SMPImage
  905.     ENDIF
  906.  
  907. ;
  908. ; pascal OSErr SMPGetNextLetter(OSType *typesList, short numTypes, LetterDescriptor *adjacentLetter)
  909. ;
  910.     IF ¨ GENERATINGCFM THEN
  911.         Macro
  912.         _SMPGetNextLetter
  913.             move.l              #$00051286,D0
  914.             dc.w                $AA5D
  915.         EndM
  916.     ELSE
  917.         IMPORT_CFM_FUNCTION SMPGetNextLetter
  918.     ENDIF
  919.  
  920. ;
  921. ; pascal OSErr SMPGetLetterInfo(LetterSpec *mailboxSpec, SMPLetterInfo *info)
  922. ;
  923.     IF ¨ GENERATINGCFM THEN
  924.         Macro
  925.         _SMPGetLetterInfo
  926.             move.l              #$0004128A,D0
  927.             dc.w                $AA5D
  928.         EndM
  929.     ELSE
  930.         IMPORT_CFM_FUNCTION SMPGetLetterInfo
  931.     ENDIF
  932.  
  933.     ENDIF
  934.     ENDIF ; __OCESTANDARDMAIL__ 
  935.  
  936.